module( "List test" );

test('T1 Function: get', function(){
	ok( "spoon"!=="there", "The spoon is not there" );
});

test('Data listing 2 items',function() {

var list = [                                                                                          
	{
	 shortName: "Product 1",
	 longName: "Long Product Name 1",
	 price: "12.00",
	 description: "Product description text Product description text Product description text Product description text",
	 thumbnail: "images/image1.jpg"
	},
	{
	 shortName: "Product 2",
	 longName: "Long Product Name 2",
	 price: "10.00",
	 description: "Product description 2 text Product description 2 text Product description 2 text Product description text",
	 thumbnail: "images/image1.jpg"		
	}
];

var renderer=new fffCommerce.ListRenderer();
var container=$('<div />');
renderer.Attach(container);
$('body').trigger(fffCommerce.events.SHOW_LIST,[list]);

var children=container.find('.productItem').length;
ok(children==2,"Trying to display 2 items ("+children+")");

});

/* 
*/
